﻿using HZY.Framework.DependencyInjection.Attributes;
using Microsoft.AspNetCore.Mvc;

namespace HZY.Framework.MinimalApi.SourceGenerator.Test;

/// <summary>
/// 
/// </summary>
[Component]
//[DynamicMinimalApi]
public class UserService : IUserService
{
    //[Inject]
    //private readonly IConfiguration _configuration;

    /// <summary>
    /// 
    /// </summary>
    /// <returns></returns>
    public async Task<string> GetName([FromBody] string name)
    {
        await Task.CompletedTask;
        return "张三";
    }



}
